from bcat.error import AbstractError

class LoadingError(AbstractError):
    def __init__(self, msg):
        super().__init__(msg)

    def __str__(self):
        return self.msg()


import unittest 
class TestFFIError(unittest.TestCase):
    def test_load_error(self):
        def raise_loading_error():
            raise LoadingError("load so error")
        self.assertRaises(LoadingError, raise_loading_error)
